import request from '@/utils/request'

// 查询用户试题结果列表
export function listLearnUserExamQuestion(query) {
  return request({
    url: '/business/learnUserExamQuestion/list',
    method: 'get',
    params: query
  })
}

// 查询用户试题结果详细
export function getLearnUserExamQuestion(id) {
  return request({
    url: '/business/learnUserExamQuestion/' + id,
    method: 'get'
  })
}

// 新增用户试题结果
export function addLearnUserExamQuestion(data) {
  return request({
    url: '/business/learnUserExamQuestion',
    method: 'post',
    data: data
  })
}

// 修改用户试题结果
export function updateLearnUserExamQuestion(data) {
  return request({
    url: '/business/learnUserExamQuestion',
    method: 'put',
    data: data
  })
}

// 删除用户试题结果
export function delLearnUserExamQuestion(id) {
  return request({
    url: '/business/learnUserExamQuestion/' + id,
    method: 'delete'
  })
}
